﻿@model ADShop.Models.ImagesProduct

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    @*<fieldset>
        <legend>ImagesProduct</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.IDImagesProduct)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IDImagesProduct)
            @Html.ValidationMessageFor(model => model.IDImagesProduct)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IDProduct, "Product")
        </div>
        <div class="editor-field">
            @Html.DropDownList("IDProduct", String.Empty)
            @Html.ValidationMessageFor(model => model.IDProduct)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LinkImagesProduct)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LinkImagesProduct)
            @Html.ValidationMessageFor(model => model.LinkImagesProduct)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DescriptionImages)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DescriptionImages)
            @Html.ValidationMessageFor(model => model.DescriptionImages)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Active)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Active)
            @Html.ValidationMessageFor(model => model.Active)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>*@
 <div class="panel-body">
            <table class="table table-hover" id="sample-table-1">
                <thead>
                    <tr>
                        <th>
                            @Html.DisplayNameFor(model => model.IDImagesProduct)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.Product.NameProduct)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.LinkImagesProduct)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.DescriptionImages)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.Active)
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>
                            <div class="editor-field">
                                @Html.EditorFor(model => model.IDImagesProduct)
                                @Html.ValidationMessageFor(model => model.IDImagesProduct)
                            </div>
                        </td>

                        <td>
                            <div class="editor-field">
                                @Html.DropDownList("IDProduct", String.Empty)
                                @Html.ValidationMessageFor(model => model.IDProduct     )
                            </div>
                        </td>
                        <td>
                            <div class="editor-field">
                                @Html.EditorFor(model => model.LinkImagesProduct)
                                @Html.ValidationMessageFor(model => model.LinkImagesProduct)
                            </div>
                        </td>
                        <td>
                            <div class="editor-field">
                                @Html.EditorFor(model => model.DescriptionImages)
                                @Html.ValidationMessageFor(model => model.DescriptionImages)
                            </div>
                        </td>
                        <td>
                            <div class="editor-field">
                                @Html.EditorFor(model => model.Active)
                                @Html.ValidationMessageFor(model => model.Active)
                            </div>
                        </td>

                    </tr>
                    
                </tbody>


            </table>

        </div>
        <p>
            <input type="submit" value="Save" class="btn btn-green" />
        </p>
    

}

<div>
    @Html.ActionLink("Bảng Danh Sách Hình Ảnh", "Index",null, new { @class = "label label-default" })
</div>

